//
// Created by LiuYou on 2021/8/20.
//

#include "Singleton.hpp"


Singleton* Singleton::instance = nullptr;


Singleton::Singleton() = default;

Singleton::~Singleton() = default;

Singleton* Singleton::getInstance() {
    if (instance == nullptr) {
        instance = new Singleton();
    }
    return instance;
}

Singleton::Singleton(const Singleton& rhs) = default;
